#include "GameScene.h"


bool GameScene::init()
{
	gameLayer = GameLayer::create();
	gameLayer->setPosition(CCPointZero);
	this->addChild(gameLayer,1);


	gameUiLayer = GameUiLayer::create();
	gameUiLayer->setPosition(CCPointZero);
	this->addChild(gameUiLayer, 3);

	this->schedule(schedule_selector(GameScene::update), 0.5f); 
	//this->schedule(schedule_selector(GameScene::update), 0.001f);
    
    return true;
}

void GameScene::update(float dt)
{
	gameLayer->update(dt);
}